package conexao;

import gui.Geral;

import java.io.IOException;

public class BibliotecaMain {
	
	private BibliotecaClient bc = null;
	
	public BibliotecaMain() {
		BibliotecaClient main = new BibliotecaClient();
		main.setHost("localhost");
		main.setPorta(5050);
		this.bc = main;
	}
	
	public void conectar(Geral guiGeral) {
		bc.setGuiGeral(guiGeral);
		try {
			bc.Conectar();
		} catch (IOException e) {
			guiGeral.msgErroConn();
		}
	}
	
}
